<template>
    <div class="topBar border-bottom">
        <div class="top_title jiacu">{{title}}</div>
        <div class="operation">
            <span class="iconfont icon-sousuo"></span>
            <span class="iconfont icon-tianjia"></span>
        </div>
    </div>
</template>
<script>
export default {
    data(){
        return {
            title:""
        }
    },
    watch: {
        $route(){
            window.document.title = this.$route.name;
            this.title = this.$route.name
        }
    },
    mounted(){
        this.title = this.$route.name
    }
    
}
</script>

<style lang="scss" scoped>
.topBar{
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 10;
    height: $topNavHeight;
    padding: 0 0.5rem;
    // background: $Navbar_bg_color;
    background: #17cff9;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: space-between;
    .top_title{
        font-size: 0.98rem;
    }
    .operation span{
        font-size: 1.1rem;
        font-weight: 600;
        margin: 0 0.8rem;
    }
    .operation span:active{
        background: #ccc;
    }
}
</style>
